package test5

object TestCollect {
  def main(args: Array[String]): Unit = {
     val l=List(1,2,3,4)
       l.foreach(x=>print(x+"\t"))
//    val l2=l.collect(_+_)
//    println(l2)
    //l.collect(x=>x*10)
  }
}
